package New;

public class text10 {
    public static void main(String[] args) {
        int []b1={1,2,3,4,5};
        int j= b1.length-1;
        for (int i = 0; i < j; i++,j--) {
            int temp=b1[i];
            b1[i]=b1[j];
            b1[j]=temp;


        }
        for (int i = 0; i < b1.length; i++) {
            System.out.print(b1[i]+" ");
        }

    }
}
